package com.jz.netthings.core.repository.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author yyy
 * @ClassName DataSourceMySqlProperties
 * @Description TODO
 * @date 2018/7/30 17:25
 */
@Component //自动注入
@ConfigurationProperties(prefix = "spring.datasource.mysql")
@Data
public class DataSourceMySqlProperties {
    private String type;
    private String driverClassName;
    private String url;
    private String username;
    private String password;
    private boolean keepAlive;
    private int initialSize;
    private int minIdle;
    private int maxActive;
    private int maxWait;
    private int timeBetweenEvictionRunsMillis;
    private int minEvictableIdleTimeMillis;
    private String validationQuery;
    private boolean testWhileIdle;
    private boolean testOnBorrow;
    private boolean testOnReturn;
    private boolean poolPreparedStatements;
    private int maxPoolPreparedStatementPerConnectionSize;
    private String filters;
    private String connectionProperties;
    private boolean logAbandoned;
    private boolean removeAbandoned;
    private int removeAbandonedTimeout;
}
